<%@ WebHandler Class="JayrockWeb.HelloWorld"  Language="C#" %>

namespace JayrockWeb
{
    using Jayrock.JsonRpc;
    using Jayrock.JsonRpc.Web;

    /// <summary>
    /// Simple handler class for low-level testing.
    /// </summary>
    public class HelloWorld : JsonRpcHandler
    {
        /// <summary>
        /// Simple method to return ""Welcome to Jayrock!" greeting.
        /// </summary>
        /// <returns>"Welcome to Jayrock!"</returns>
        [ JsonRpcMethod("greetings") ]
        public string Greetings()
        {
            return "Welcome to Jayrock!";
        }
    }
}